# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=wlrctl
pkgver=0.2.1
pkgrel=0
pkgdesc="Utility for miscellaneous wlroots extensions"
url="https://git.sr.ht/~brocellous/wlrctl"
license="MIT"
arch="all"
makedepends="meson scdoc libxkbcommon-dev wayland-dev"
subpackages="$pkgname-doc $pkgname-zsh-completion"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~brocellous/wlrctl/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # no test suite

build() {
	abuild-meson \
		-Dwerror=false \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

sha512sums="
c4de643353a3e3ad8da9f828614d3aa4aebb304d9b1fcf9211166820154e48a87eeedd73695ac384a8e892fe765e1914bc4d79ba4fc9d786c9adf02196b84e66  wlrctl-0.2.1.tar.gz
"
